var config = require("../../config");
import {
  Http
} from '../../http-d.js'
var http = new Http();
class SearchModels {
  getHistory(success) {
    var url = '/index/search/getHistory';
    http.request(url, {}, function (res) {
      success(res);
    })
  }
  delKeyWord(success){
    var url = '/index/search/delKeyWord';
    http.request(url, {}, function (res) {
      success(res);
    })
  }
  search(param,success){
    var url = '/index/search/search';
    http.request(url, param, function (res) {
      success(res);
    })
  }
  recommend_list(success){
    var url = '/index/index/getRecommendGoods';
    http.request(url, {}, function (res) {
      success(res);
    })
  }
}
export {
  SearchModels
}